#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <l8w8jwt/decode.h>

    static const char KEY[]= "zhe jius wo de mima";
    
    static const char JWT[]= "nizaigosdasdaffgdfsdfsdfdsfsd";
int main(void)
{
    struct l8w8jwt_decoding_params params;
    l8w8jwt_decoding_params_init(&params);

    params.alg = L8W8JWT_ALG_ES512;
    
    params.jwt = (char*)JWT;
    params.jwt_length = strlen(JWT);

    params.verification_key = (unsigned char*)KEY;
    params.verification_key_length = strlen(KEY);

    params.validate_iss = "sdadsfrsd sda";
    params.validate_sub = "sadadsffd fdsfsd"; 

    params.validate_exp = 0;
    params.exp_tolerance_seconds = 60;


    params.validate_iat = 1;
    params.iat_tolerance_seconds = 60;
    return 0;
}

